package myDoubleLinkedList;

public class test {
    public static void main(String[] args) {
        MyDoubleLinkedList myDoubleLinkedList = new MyDoubleLinkedList();
//        myDoubleLinkedList.addFirst(1);
//        myDoubleLinkedList.addFirst(2);
//        myDoubleLinkedList.addFirst(3);
//        myDoubleLinkedList.addFirst(4);
//        myDoubleLinkedList.display();
//        System.out.println("======");
        myDoubleLinkedList.addLast(1);
        myDoubleLinkedList.addLast(2);
        myDoubleLinkedList.addLast(3);
        myDoubleLinkedList.addLast(4);
        myDoubleLinkedList.display();
//        System.out.println("======");
//        myDoubleLinkedList.addLast(2);
//        myDoubleLinkedList.addLast(2);
//        myDoubleLinkedList.addLast(2);
//        myDoubleLinkedList.addLast(2);
//        myDoubleLinkedList.addLast(2);
//        myDoubleLinkedList.addLast(2);
//        myDoubleLinkedList.removeAllKey(2);
//          myDoubleLinkedList.remove(1);
//          myDoubleLinkedList.remove(4);
//          myDoubleLinkedList.remove(3);
//          myDoubleLinkedList.remove(2);
          myDoubleLinkedList.addIndex(4,5);
          myDoubleLinkedList.display();
          myDoubleLinkedList.clear();
          myDoubleLinkedList.display();

    }

}
